<template>
	<view class="container">
		<button @click="getBanners">调用接口</button>
	</view>
</template>

<script setup>
	  import {ref} from 'vue'
	  import {getBanner} from "../../api/index.js"
	  const title = ref("标题")
	  function getBanners(){
		  getBanner().then(res=>{
			  console.log(res)
		  })
	  }
</script>

<style>
	.container {
		padding: 20px;
		font-size: 14px;
		line-height: 24px;
	}
</style>
